package com.oo.inherit_3.automobile;

import java.util.Scanner;

/**
 * Test--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-09 14:15
 **/
public class Test {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入租车人姓名：");
        String name = sc.next();
        System.out.println("请输入租赁天数：");
        int day = sc.nextInt();
        Truck t = new Truck("京D1111", "蓝色", "东风", 500, 500);
        t.hire(name, day);
        System.out.println("===============");
        System.out.println("请输入租车人姓名：");
        String name2 = sc.next();
        System.out.println("请输入租赁天数：");
        int day2 = sc.nextInt();
        Car car = new Car("京R00000", "黑色", "奥迪", 100);
        car.hire(name2, day2);
    }
}
